package ru.stepuk.modeller;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import ru.stepuk.modeller.buffers.Buffer;
import ru.stepuk.modeller.distributions.Distribution;
import ru.stepuk.modeller.distributions.ExponentialDistribution;

/**
 *
 * @author ivan
 */
@XmlRootElement
public class Model {

    @XmlElement
    private String name = "UNTITLED_MODEL";
    // Kendall notation
    private Distribution a; // Arrival process
    private Distribution b; // Service time distribution
    @XmlElement(name = "C")
    private int c; // Number of servers
    @XmlElement(name = "K")
    private int k; // Number of places in system (max queue size)
    @XmlElement(name = "N")
    private int n; // Calling population
    @XmlElement(name = "D")
    private ServiceDiscipline d;

    

    private List<Server> servers;
    private Buffer buffer;

    public Model() {
    }

    public Model(String name) {
        this.name = name;
        d = ServiceDiscipline.FCFS;// <= remove it
        a = new ExponentialDistribution(12, null);
    }

    public void save(String filename) {
    }
}
